package com.dljd.javase.t7.example1;

public class Test {

    static void change(T1 t){
       // t=new T1();
        t.setA(300);
    }
    public static void main(String[] args) {
        T1  t=new T1();
        t.setA(123);
        change(t);
        System.out.println(t.getA());

    }
}
class T1{
    private int a;

    public int getA() {
        return a;
    }

    public void setA(int a) {
        this.a = a;
    }
}
